﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class YoozooMarsGotClientEventWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Yoozoo.Mars.Got.ClientEvent);
			Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
			
			
			
			
			
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 40, 0, 0);
			
			
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ChangePveSceneFog", Yoozoo.Mars.Got.ClientEvent.ChangePveSceneFog);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RTSShowSkill", Yoozoo.Mars.Got.ClientEvent.RTSShowSkill);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RTSShowSkillRelease", Yoozoo.Mars.Got.ClientEvent.RTSShowSkillRelease);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SwitchRTSSkillReleaseCount", Yoozoo.Mars.Got.ClientEvent.SwitchRTSSkillReleaseCount);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RTSUnSelectAllMarch", Yoozoo.Mars.Got.ClientEvent.RTSUnSelectAllMarch);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RTSSelectMarch", Yoozoo.Mars.Got.ClientEvent.RTSSelectMarch);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RTSMarchDelete", Yoozoo.Mars.Got.ClientEvent.RTSMarchDelete);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RTSSelectMarchChanged", Yoozoo.Mars.Got.ClientEvent.RTSSelectMarchChanged);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RTSSoldierNumChange", Yoozoo.Mars.Got.ClientEvent.RTSSoldierNumChange);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "playerSelfCastlePawn", Yoozoo.Mars.Got.ClientEvent.playerSelfCastlePawn);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RTSUnSelectMarch", Yoozoo.Mars.Got.ClientEvent.RTSUnSelectMarch);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RTSSelectAllMarch", Yoozoo.Mars.Got.ClientEvent.RTSSelectAllMarch);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RTSHoldOrder", Yoozoo.Mars.Got.ClientEvent.RTSHoldOrder);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RTSReturnOrder", Yoozoo.Mars.Got.ClientEvent.RTSReturnOrder);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RTSCenterPosMove", Yoozoo.Mars.Got.ClientEvent.RTSCenterPosMove);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "loadingProgressUpdate", Yoozoo.Mars.Got.ClientEvent.loadingProgressUpdate);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "enterRTSScene", Yoozoo.Mars.Got.ClientEvent.enterRTSScene);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "leaveRTSScene", Yoozoo.Mars.Got.ClientEvent.leaveRTSScene);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "soldier_walkAuto_finshi", Yoozoo.Mars.Got.ClientEvent.soldier_walkAuto_finshi);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RTSFocusSelectChange", Yoozoo.Mars.Got.ClientEvent.RTSFocusSelectChange);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RTSSendTroopNumChanged", Yoozoo.Mars.Got.ClientEvent.RTSSendTroopNumChanged);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RTSChooseHeroChanged", Yoozoo.Mars.Got.ClientEvent.RTSChooseHeroChanged);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RTSHeroChooseComplete", Yoozoo.Mars.Got.ClientEvent.RTSHeroChooseComplete);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RefreshRTSFocus", Yoozoo.Mars.Got.ClientEvent.RefreshRTSFocus);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "OnSelfMarchInfoChange", Yoozoo.Mars.Got.ClientEvent.OnSelfMarchInfoChange);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "OnSelfMarchNumChange", Yoozoo.Mars.Got.ClientEvent.OnSelfMarchNumChange);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "OnSelfMarchStateChange", Yoozoo.Mars.Got.ClientEvent.OnSelfMarchStateChange);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BigMapCenterPosMove", Yoozoo.Mars.Got.ClientEvent.BigMapCenterPosMove);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CurrentPosChange", Yoozoo.Mars.Got.ClientEvent.CurrentPosChange);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "OnLoginProgress", Yoozoo.Mars.Got.ClientEvent.OnLoginProgress);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RTSShowSkillHit", Yoozoo.Mars.Got.ClientEvent.RTSShowSkillHit);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RTSKillNum", Yoozoo.Mars.Got.ClientEvent.RTSKillNum);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TimelineEvent", Yoozoo.Mars.Got.ClientEvent.TimelineEvent);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "OnInitCityCameraEnd", Yoozoo.Mars.Got.ClientEvent.OnInitCityCameraEnd);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RoundFight", Yoozoo.Mars.Got.ClientEvent.RoundFight);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ResPointClick", Yoozoo.Mars.Got.ClientEvent.ResPointClick);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LODChange", Yoozoo.Mars.Got.ClientEvent.LODChange);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LODChangePer", Yoozoo.Mars.Got.ClientEvent.LODChangePer);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MarchClick", Yoozoo.Mars.Got.ClientEvent.MarchClick);
            
			
			
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new Yoozoo.Mars.Got.ClientEvent();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Mars.Got.ClientEvent constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 0)
				{
					
					var gen_ret = new Yoozoo.Mars.Got.ClientEvent();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Mars.Got.ClientEvent constructor!");
            
        }

        
		
        
		
        
        
        
        
        
        
        
        
        
		
		
		
		
    }
}
